package ar.com.photo_admin.domain

class PurchaseOrderItem extends DomainObject {

	PurchaseOrder purchaseOrder
	
	Size size
	
	PaperType paperType
	
	PaperBorder paperBorder
	
	EventPhoto photo
	
	int amountCopies
	
	static belongsTo = [purchaseOrder : PurchaseOrder, size : Size,photo : EventPhoto, paperBorder : PaperBorder, paperType : PaperType]
	
    static constraints = {
		purchaseOrder(nullable:false)
		size(nullable:false)
		paperType(nullable:false)
		photo(nullable:false)
		paperBorder(nullable:false)
		amountCopies(min:0)
    }
}
